package com.jastt.frontend.utils;

import javax.faces.context.ExceptionHandler;
import javax.faces.context.ExceptionHandlerFactory;

public class DefaultExceptionHandlerFactory extends ExceptionHandlerFactory {

    private ExceptionHandlerFactory parent;

    public DefaultExceptionHandlerFactory(ExceptionHandlerFactory parent) {
	this.parent = parent;
    }

    @Override
    public ExceptionHandler getExceptionHandler() {
	ExceptionHandler eh = parent.getExceptionHandler();
	eh = new DefaultExceptionHandler(eh);

	return eh;
    }

}
